From: Stefan Monnier Date: Thu, 11 Nov 2010 21:11:17 +0000 (-0500) Subject: * src/cmds.c (Fself_insert_command): Don't call XFASTINT without checking X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~324^2~5698 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=f02e19ca46aeb9fcfa6603fe629aafca1a61ab21;p=emacs.git * src/cmds.c (Fself_insert_command): Don't call XFASTINT without checking it's not negative. --- diff --git a/src/ChangeLog b/src/ChangeLog index dd3f57275f3..625357bb050 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2010-11-11 Stefan Monnier + + * cmds.c (Fself_insert_command): Don't call XFASTINT without checking + it's not negative. + 2010-11-10 YAMAMOTO Mitsuharu * font.c (font_filter_properties): Add const to array elements of diff --git a/src/cmds.c b/src/cmds.c index 2d0814abd98..b2f454199f5 100644 --- a/src/cmds.c +++ b/src/cmds.c @@ -276,7 +276,7 @@ After insertion, the value of `auto-fill-function' is called if the (Lisp_Object n) { int remove_boundary = 1; - CHECK_NUMBER (n); + CHECK_NATNUM (n); if (!EQ (Vthis_command, current_kboard->Vlast_command)) nonundocount = 0;